Skip to content

Conversation

milu-tao
Copy link
Contributor

  1. result 在遍历过程中 ++ 就行,没必要另外计算
  2. 题目已经表明:s字符串的长度规则是:1 <= s.length <= 1000,所以前面不需要进行判断字符串长度

1. result 在遍历过程中 ++ 就行,没必要另外计算 
2.题目已经表明:s字符串的长度规则是:1 <= s.length <= 1000,所以前面不需要进行判断字符串长度
@youngyangyang04 youngyangyang04 merged commit 3f4968a into youngyangyang04:master May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants